<?php
namespace Controller;
use Kuyuan\WqCore\controller\Controller;
use Model\W7ModulesModel;

class Modules extends Controller
{
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 获取模块信息
     * @param array $_fields 请求字段
     * @return W7ModulesModel
     */
    public function get($_fields = array())
    {
        $Model = W7ModulesModel::field($_fields)
                                ->where("name",KUYUAN_NAME)
                                ->cache(true);
        return $Model->find();
    }
}